//time refresh
function showTime(){
	var sTime=document.getElementById("reTime");
	var date = new Date(); //日期对象
	var week,now;
	var week; 
	if(date.getDay()==0)          week="星期日"
	if(date.getDay()==1)          week="星期一"
	if(date.getDay()==2)          week="星期二" 
	if(date.getDay()==3)          week="星期三"
	if(date.getDay()==4)          week="星期四"
	if(date.getDay()==5)          week="星期五"
	if(date.getDay()==6)          week="星期六"

	now = date.getFullYear()+"年"; //读英文就行了
	now = now + (date.getMonth()+1)+"月"; //取月的时候取的是当前月-1如果想取当前月+1就可以了
	now = now + date.getDate()+"日";
	now = now + date.getHours()+"时";
	now = now + date.getMinutes()+"分";
	now = now + date.getSeconds()+"秒";
	sTime.innerHTML =now+" "+week; //显示时间和日期 
	setTimeout("showTime()",1000); //设置过1000毫秒就是1秒，调用showTime方法
}
window.onload=function(){
	showTime();
}